package xyz.riceball.springcloudstreambinderfile.property;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.stream.binder.AbstractExtendedBindingProperties;
import org.springframework.cloud.stream.binder.BinderSpecificPropertiesProvider;

/**
 * <p>
 * FileExtendedBindingProperties
 * </p>
 *
 * @author xiaovcloud
 * @since 2024/6/17 14:29
 */
@ConfigurationProperties("spring.cloud.stream.file")
public class FileExtendedBindingProperties extends AbstractExtendedBindingProperties<
	FileConsumerProperties, FileProducerProperties, FileBinderProperties> {

	private static final String DEFAULTS_PREFIX = "spring.cloud.stream.file.default";

	private String path;

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}


	@Override
	public String getDefaultsPrefix() {
		return DEFAULTS_PREFIX;
	}

	@Override
	public Class<? extends BinderSpecificPropertiesProvider> getExtendedPropertiesEntryClass() {
		return FileBinderProperties.class;
	}


}
